Skip to content

release: ScanLink 0.8.1b1 - #8

Merged
debeski merged 3 commits into
mainfrom
0.8/release_0_8_1
Nov 26, 2026
Merged

debeski merged 3 commits into
mainfrom
0.8/release_0_8_1

Conversation

@debeski

@debeski debeski commented Nov 26, 2026

Copy link
Copy Markdown
Owner

ScanLink 0.8.1b1, the first beta of the 0.8.1 fix, released alongside DjangoLux 1.17.0b1 and Composer 1.11.0b1.

Callbacks are delivered, to linked websites only (security). A finished scan was never posted to its callback_url. Since 2026-04-28, _process_job passed _send_callback the public job snapshot, which carries no URL.

  • ScanWorker._start_callback now posts the stored PDF on its own thread:
    • connect timeout 5 s, read timeout 30 s;
    • redirects are not followed;
    • only a 2xx response counts as delivered.
  • SiteRegistry.allows_callback limits callbacks to websites the user has linked. Anything else is refused.

See ## v0.8.1b1 in CHANGELOG.md.

Verification

  • The test suite passes: 92 OK.
  • The Windows build and installer run in CI. ScanLink's protocol does not depend on DjangoLux, so its live check is separate from the DjangoLux and Composer testbeds.

After merge

Tag v0.8.1b1 on main (the owner's call).

🤖 Generated with Claude Code

debeski and others added 3 commits November 25, 2026 11:07
A finished scan was never posted to its callback_url: since 36249b6
(2026-04-28) _process_job handed _send_callback the public job snapshot,
which carries no URL. ScanWorker._start_callback now posts the stored PDF
on its own thread (connect 5 s, read 30 s, no redirects, 2xx only).

Delivery alone would let any page post a scanned document to a host of its
choosing through a scanlink:// link, so SiteRegistry.allows_callback limits
the destination to an allowed website: a browser request may name only its
own website or the sites linked with it; a local tool or scanlink:// link
may name any linked or listed website. The worker checks at submission
(400 callback_not_allowed; a refused scanlink:// launch never scans) and
again before sending, and fails closed without a guard. Jobs report
callback.state; the PDF stays available to poll either way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Callbacks delivered, to linked websites only (owner: "deliver callbacks").
Paired with the DjangoLux 1.17 fix line; DjangoLux never sends callback_url,
so no client change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@debeski
debeski merged commit 70bc77b into main Nov 26, 2026
3 checks passed
@debeski
debeski deleted the 0.8/release_0_8_1 branch November 26, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant